<#if tempAttachs?exists && tempAttachs?size gt 0>
<#list tempAttachs as a>
<div style="border-bottom: 1px dashed #DDD;margin-bottom:10px;">
			<table cellpadding="0" cellspacing="0" class="l-table-edit">
		            <tr>
		                <td align="right" class="l-table-edit-th">标题:</td>
		                <td align="left" class="l-table-edit-td" >
		                	<input type="text" class="inputText required" value="${a.attachName?if_exists}" id="filename" name="files[${a_index}].fileName" maxlength="100" ltype="text" style="width:595px;" />
		                	<input type="hidden" name="files[${a_index}].tempId" value="${a.id}"/>
		                	<a href="javascript:delSingleAttach(${a.id});" class="minibutton" style="color:white;"><span>删除</span></a>
		                </td>
		            </tr>
		            <tr>
		                <td align="right" class="l-table-edit-th" valign="top">分类:</td>
		                <td align="left" class="l-table-edit-td" id="ID${a.guid}">
		                	<span id="ID${a.guid}cateinput" style="margin-right:30px;"></span>
		                    <@s.hidden id="ID${a.guid}cateinputHidden" name="files[${a_index}].category"  value=""/>
		                    <@s.hidden id="ID${a.guid}cateIdHidden" name="files[${a_index}].categoryId" value=""/>
							<a class="minibutton" style="width:70px;" href="javascript:myfile.chooseCateSingle('ID${a.guid}');"><span>修改分类</span></a>
						</td>
		            </tr>   
		            <tr>
		                <td align="right" class="l-table-edit-th" valign="top">介绍:</td>
		                <td align="left" class="l-table-edit-td">
		                    <textarea id="all-summary" name="files[${a_index}].desc" maxlength="1000" cols="100" rows="10" class="l-textarea" style="width:600px"></textarea>
		                </td>      
		            </tr>  
		 			<tr>
		                <td align="right" class="l-table-edit-th">关键词:</td>
		                <td align="left" class="l-table-edit-td">
		                	<input type="text" class="inputText" value="" id="all-keyword" name="files[${a_index}].keyword" maxlength="100" ltype="text" style="width:595px;"/>
		                </td>
		            </tr>
		            <script type="text/javascript">
						$(function(){
								$('#uploadImage').click(function(){
									myfile.uploadImage($('#tempImageId').val());
								});
						});
					</script>
		        </table>

</div>
</#list>
<div align="center" style="margin-bottom:10px;">
	<a href="javascript:submitSingle();" class="minibutton" style="color:white;"><span>提交</span></a>
</div>

</#if>
